﻿using System;
using System.Collections.Generic;
using System.Text;

namespace AMS.Common
{
    /// <summary>
    /// 带参数的事件有参数类
    /// </summary>
    /// <typeparam name="T"></typeparam>
    public class ArgumentEventArgs<T> : EventArgs
    {
        /// <summary>
        /// 带参数的事件有参数类
        /// </summary>
        /// <param name="name"></param>
        public ArgumentEventArgs(string name)
        {
            ArgumentName = name;
        }

        /// <summary>
        /// 带参数的事件有参数类
        /// </summary>
        /// <param name="name"></param>
        /// <param name="value"></param>
        public ArgumentEventArgs(string name, T value)
        {
            ArgumentName = name;
            ArgumentValue = value;
        }

        /// <summary>
        /// 参数名
        /// </summary>
        public string ArgumentName { get; set; }

        /// <summary>
        /// 参数值
        /// </summary>
        public T ArgumentValue { get; set; }
    }
}
